package com.hopes.bizz.risk.transfer.bean.dto;

import com.hopes.bizz.risk.transfer.validation.DateTime;
import com.hopes.bizz.risk.transfer.validation.UUID;
import com.hopes.bizz.risk.transfer.validation.group.SeqOne;
import com.hopes.bizz.risk.transfer.validation.group.SeqTwo;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author lyb
 * @version 1.0
 * @description: 上报停用检维修
 * @date 2024/2/1 17:39
 */

@Data
public class RiskUnitStopDto extends RiskBaseDto {

    @NotBlank(message = "风险分析对象编码为空", groups = SeqOne.class)
    private String hazardCode;

    @NotBlank(message = "风险单元ID为空", groups = SeqOne.class)
    @UUID(message = "风险单元ID不符合UUID正则", groups = SeqTwo.class)
    private String riskUnitId;

    @NotBlank(message = "装置停用或者检维修开始时间为空", groups = SeqOne.class)
    @DateTime(message = "<<装置停用或者检维修开始时间>>不符合时间格式", groups = SeqTwo.class)
    private String stopStartTime;
    /**
     * 装置停用或者检维修结束时间
     **/
    private String stopEndTime;

    @NotBlank(message = "停用原因为空", groups = SeqOne.class)
    private String stopReason;

    @NotBlank(message = "创建时间为空", groups = SeqOne.class)
    @DateTime(message = "<<创建时间>>不符合时间格式", groups = SeqTwo.class)
    private String createDate;

    @NotBlank(message = "创建人为空", groups = SeqOne.class)
    private String createBy;

    @NotBlank(message = "修改时间为空", groups = SeqOne.class)
    @DateTime(message = "<<更新时间>>不符合时间格式", groups = SeqTwo.class)
    private String updateDate;

    @NotBlank(message = "修改人为空", groups = SeqOne.class)
    private String updateBy;
}
